home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sprite 1984 - 1993
/
Sprite 1984 - 1993.iso
/
src
/
boot
/
netBoot.new
/
types.h
< prev
next >
Wrap
C/C++ Source or Header
|
1990-12-19
|
538b
|
29 lines
/* @(#)types.h 1.1 86/09/27 SMI */
/*
* Copyright (c) 1986 by Sun Microsystems, Inc.
*/
/*
* Rpc additions to <sys/types.h>
*/
#include "systypes.h"
#define bool_t int
#define enum_t int
#define FALSE (0)
#define TRUE (1)
#define __dontcare__ -1
#ifndef KERNEL
#define mem_alloc(bsize) malloc(bsize)
#define mem_free(ptr, bsize) free(ptr)
#ifndef major /* ouch! */
#include "systypes.h"
#endif
#else
#define mem_alloc(bsize) kmem_alloc((u_int)bsize)
#define mem_free(ptr, bsize) kmem_free((caddr_t)(ptr), (u_int)(bsize))
#endif